home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AOCE / Development Tools / Interfaces / PInterfaces / OCEErrors.p < prev    next >
Encoding:
Text File  |  1993-11-10  |  17.3 KB  |  339 lines  |  [TEXT/MPS ]

  1. {***********************************************************
  2.  
  3. Created: Sunday, June 6, 1993 at 3:00PM
  4.  OCEErrors.p
  5.  Pascal Interface to the Macintosh Libraries
  6.  
  7.   Copyright Apple Computer, Inc. 1990-1993
  8.   All rights reserved
  9.  
  10. ***********************************************************}
  11.  
  12.  
  13. {$IFC UNDEFINED UsingIncludes}
  14. {$SETC UsingIncludes:= 0}
  15. {$ENDC}
  16.  
  17. {$IFC NOT UsingIncludes}
  18.     UNIT OCEErrors;
  19.     INTERFACE
  20. {$ENDC}
  21.  
  22. {$IFC UNDEFINED UsingOCEErrors}
  23. {$SETC UsingOCEErrors:= 1}
  24.  
  25. {$I+}
  26. {$SETC OCEErrorsIncludes:= UsingIncludes}
  27. {$SETC UsingIncludes:= 1}
  28.  
  29.  
  30. {$IFC UNDEFINED UsingErrors}
  31. {$I $$Shell(PInterfaces)Errors.p}
  32. {$ENDC}
  33.  
  34. {$SETC UsingIncludes:= OCEErrorsIncludes}
  35.  
  36.  
  37.  
  38.  
  39. {
  40. Allocated ranges:
  41.     AOCE General Errors                        -1500 to -1539
  42.     AOCE Authentication Errors                -1540 to -1609
  43.     AOCE Catalog Errors                        -1610 to -1680
  44.     
  45.     AOCE Standard Mail Errors                -1900 to -1949
  46.     AOCE Standard Catalog Errors            -1950 to -1969
  47.     AOCE Digital Signature Errors            -1970 to -1999
  48.  
  49.     AOCE Templates Errors                    -15000 to -15039
  50.     AOCE Mail Errors                        -15040 to -15089
  51.     AOCE Messaging Errors                    -15090 to -15169
  52.     Reserved for future                        -15170 to -15199
  53. }
  54.  
  55. CONST
  56.  
  57. { AOCE General Errors (-1500 to -1539) }
  58.  
  59. kOCEToolboxNotOpen                        = -1500;    { Toolbox not open; perhaps its closing }
  60. kOCEInvalidCommand                        = -1501;    { Request code passed to a trap call is invalid }
  61. kOCEInvalidRef                            = -1502;    { a reference to an object is obsolete or invalid }
  62. kOCEBufferTooSmall                        = -1503;    { the buffer supplied is too small for the task }
  63. kOCEVersionErr                            = -1504;    { some manner of software version mismatch }
  64. kOCESyncAsyncErr                        = -1505;    { Op tried synchronously may only be done async, or vice versa }
  65. kOCEInternalErr                            = -1506;    { the OCE toolbox has an internal error }
  66. kOCENotAnOwner                            = -1507;    { this operation can only be done by the object's owner }
  67. kOCENotImplemented                        = -1508;    { Feature not implemented }
  68. kOCENotAuthenticated                    = -1509;    { The user must be authenticated }
  69. kOCEAlreadyExists                        = -1510;    { The object being added already exists }
  70. kOCEDoesntExist                            = -1511;    { the object being referenced doesn't exist or cannot be found }
  71. kOCEConnectionErr                        = -1512;    { Unable to open or maintain a network transport }
  72. kOCEConnectionClosed                    = -1513;    { Connect has closed }
  73. kOCEInvalidRecipient                    = -1514;    { Invalid recipient/address for this command }
  74. kOCEInvalidIndex                        = -1515;    { invalid index (out of range) }
  75. kOCERefIsClosing                        = -1516;    { Object references is being closed, cannot complete command }
  76. kOCEHasPendingMsgs                        = -1517;    
  77. kOCEInvalidConfiguration                = -1518;
  78. kOCERequiredServicesNotAvailable        = -1519;
  79. kOCEServerInactive                        = -1520;
  80. kOCEMoreDiskSpaceNeeded                    = -1521;    { Inadequate disk space to safely complete operation }
  81. kOCEParamErr                            = paramErr;    { invalid parameter passed to toolbox }
  82.  
  83. { AOCE Authentication Errors (-1540 to -1609) }
  84.  
  85. kOCEReadAccessDenied                    = -1540;    
  86. kOCEWriteAccessDenied                    = -1541;    
  87. kOCEAccessRightsInsufficient            = -1542;    { stream needs to be authenticated, or not authorized, or someone other than agent trying to TPFC, or problem in server-to-server authentication }
  88. kOCEUnsupportedCredentialsVersion        = -1543;    { don't know how to read that version of credentials }
  89. kOCECredentialsProblem                    = -1544;    { couldn't successfully decrypt credentials }
  90. kOCECredentialsImmature                    = -1545;    { current time < first valid time }
  91. kOCECredentialsExpired                    = -1546;    { current time > expiry time }
  92. kOCEProxyImmature                        = -1547;    { current time < proxy start time }
  93. kOCEProxyExpired                        = -1548;    { current time > proxy expiry time }
  94. kOCEDisallowedRecipient                    = -1549;    { Recipient not specified in proxy }
  95. kOCENoKeyFound                            = -1550;    { found no key for entity in question }
  96. kOCEPrincipalKeyNotFound                = -1551;    { couldn't decode proxy because principal has no key }
  97. kOCERecipientKeyNotFound                = -1552;    { recipient has no key }
  98. kOCEAgentKeyNotFound                    = -1553;    { in TPFC, agent has no key }
  99. kOCEKeyAlreadyRegistered                = -1554;    { entity already has a key }
  100. kOCEMalformedKey                        = -1555;    { key is of an unknown encryption method, or key doesn't match password }
  101. kOCEUndesirableKey                        = -1556;    { password too short, key too simple, or trying to change cluster key to the same value }
  102. kOCEWrongIdentityOrKey                    = -1557;    { In CheckIdentity, name doesn't exist or key is wrong }
  103. kOCEInitiatorKeyProblem                    = -1558;    { either we couldn't find the initiator's key or we found it but couldn't successfully decrypt instructions or proxy }
  104. kOCEBadEncryptionMethod                    = -1559;    { the specified encryption method is not supported }
  105. kOCELocalIdentityDoesNotExist            = -1560;    { LocalIdentity has to be setup }
  106. kOCELocalAuthenticationFail                = -1561;    { LocalIdentity Login has to be done for this operation }
  107. kOCELocalIdentitySetupExists            = -1562;    { LocalIdentity setup exists, use change instead of setup }
  108. kOCEDirectoryIdentitySetupExists        = -1563;      { DirectoryIdentity setup exists, use change instead of setup }
  109. kOCEDirectoryIdentitySetupDoesNotExist    = -1564;    { DirectoryIdentity setup does not exist }
  110. kOCENotLocalIdentity                    = -1565;    { Use LocalIdentity calls instead! }
  111. kOCENoMoreIDs                            = -1566;    { identity table is full }
  112. kOCEUnknownID                            = -1567;    { identity passed is not valid }
  113. kOCEOperationDenied                        = -1568;    { LocalID operation denied }
  114. kOCEAmbiguousMatches                    = -1569;    { ambiguous matches found in resolving CIDs (more than 1 CID) }
  115. kOCENoASDSPWorkSpace                    = -1570;    { No ASDSP workspace passed for Open Secure Stream }
  116. kOCEAuthenticationTrouble                = -1571;    { generic authentication problem }
  117.  
  118. { AOCE Catalog Errors (-1610 to -1680) }
  119.  
  120. kOCENotLocal                            = -1610;    { the server does not serve the requested dNode }
  121. kOCETooBusy                                = -1611;    { server cannot complete call at this time }
  122. kOCEDatabaseFull                        = -1612;    { disk is full }
  123. kOCETargetDirectoryInaccessible            = -1613;    { Catalog server not responding }
  124. kOCEBogusArgs                            = -1614;    { Args not formatted correctly on the wire }
  125. kOCENoSuchDNode                            = -1615;    { the requested dNode does not exist }
  126. kOCEDNodeUnavailable                    = -1616;    { could not find any servers that serve the requested dNode }
  127. kOCEBadRecordID                            = -1617;    { invalid RecordID (usually name and/or type don't match cid) }
  128. kOCENoSuchRecord                        = -1618;    { the specified record does not exist }
  129. kOCENoSuchAttributeValue                = -1619;    { The attribute value that was passed in does not exist }
  130. kOCENoSuchPseudonym                        = -1620;    { the specified pseudonym does not exist }
  131. kOCEAttributeValueTooBig                = -1621;    { self-explanatory }
  132. kOCETypeExists                            = -1622;    { The type already exists in the record }
  133. kOCEMoreData                            = -1623;    { only a warning - buffer not big enough }
  134. kOCERefNumBad                            = -1624;    { RefNum is not valid }
  135. kOCEStreamCreationErr                    = -1625;    { problem creating stream }
  136. kOCEOperationNotSupported                = -1626;    { the specified catalog does not support this operation }
  137. kOCEPABNotOpen                            = -1627;    { specified Personal Catalog is not open to make the operation }
  138. kOCEDSAMInstallErr                        = -1628;    { specified CSAM could not be installed }
  139. kOCEDirListFullErr                        = -1629;    { catalog list is full, try removing an entry }
  140. kOCEDirectoryNotFoundErr                = -1630;    { catalog was not found in the list }
  141. kOCEAbortNotSupportedForThisCall        = -1631;    { this call cannot be aborted }
  142. kOCEAborted                                = -1632;    { this call was aborted }
  143. kOCEOCESetupRequired                    = -1633;    { LocalIdentity Setup is required }
  144. kOCEDSAMRecordNotFound                    = -1634;    { CSAM Record not found }
  145. kOCEDSAMNotInstantiated                    = -1635;    { CSAM is not instantiated }
  146. kOCEDSAMRecordExists                    = -1636;    { CSAM record already exists }
  147. kOCELengthError                            = -1637;    { supplied buffer was too small }
  148. kOCEBadStartingRecord                    = -1638;    { Lookup starting record is not within range }
  149. kOCEBadStartingAttribute                = -1639;    { Lookup starting attribute is not within range }
  150. kOCEMoreAttrValue                        = -1640;    { attribute value could not fit into buffer (even though it was the only value) }
  151. kOCENoDupAllowed                        = -1641;
  152. kOCENoSuchAttributeType                    = -1642;
  153. kOCEMiscError                            = -1643;    { some other error }
  154. kOCENoSuchIcon                          = -1644;    { no matching icon from GetDirectoryIcon }
  155. kOCERLIsDontMatch                        = -1645;    { RLIs do not match in lookup }
  156. kOCEDirectoryCorrupt                    = -1646;    { Serious disk fill corruption problem }
  157.  
  158. { AOCE Standard Mail Errors (-1900 to -1949) }
  159.  
  160. kSMPNotEnoughMemoryForAllRecips         = -1900;
  161. kSMPCopyInProgress                         = -1901;
  162. kSMPMailerNotInitialized                 = -1902;
  163. kSMPShouldNotAddContent                 = -1903;
  164. kSMPMailboxNotFound                     = -1904;
  165. kSMPNoNextLetter                         = -1905;
  166. kSMPHasOpenAttachments                     = -1906;
  167. kSMPFinderNotRunning                    = -1907;
  168. kSMPCommandDisabled                        = -1908;
  169. kSMPNoMailerInWindow                    = -1909;
  170. kSMPNoSuchAddress                        = -1910;
  171. kSMPMailerAlreadyInWindow                = -1911;
  172. kSMPMailerUneditable                    = -1912;
  173. kSMPNoMatchingBegin                        = -1913;
  174. kSMPCannotSendReceivedLetter            = -1914;
  175. kSMPIllegalForDraftLetter                = -1915;
  176. kSMPMailerCannotExpandOrContract        = -1916;
  177. kSMPMailerAlreadyExpandedOrContracted    = -1917;
  178. kSMPIllegalComponent                    = -1918;
  179. kSMPMailerAlreadyNotTarget                = -1919;
  180. kSMPComponentIsAlreadyTarget            = -1920;
  181. kSMPRecordDoesNotContainAddress            = -1921;
  182. kSMPAddressAlreadyInList                = -1922;
  183. kSMPIllegalSendFormats                    = -1923;
  184. kSMPInvalidAddressString                 = -1924;
  185. kSMPSubjectTooBig                         = -1925;
  186. kSMPParamCountErr                        = -1926;    {  enclosure count != 1, while sendEnclosure Only == true. }
  187. kSMPTooManyPages                         = -1927;    {  Exceeding the image page limit. }
  188. kSMPTooManyEnclosures                    = -1928;
  189.  
  190. { AOCE Standard Catalog Errors (-1950 to -1969) }
  191.  
  192. kSDPNoSearchText                         = -1950;
  193. kSDPTooManyLoginAttempts                 = -1951;
  194. kSDPNoSelection                         = -1952;
  195. kSDPPersonalDirectoryRepairFailed         = -1953;
  196.  
  197. { AOCE Digital Signature Errors (-1970 to -1999) }
  198.  
  199. kSIGOperationIncompatibleErr             = -1970;    { context in use for different type of operation }
  200. kSIGCertificateQueryDenied                 = -1971;    { can't query certificates with this context }
  201. kSIGVerifyFailedErr                     = -1972;    { verification failed }
  202. kSIGInvalidCredentialErr                 = -1973;    { verified OK but credential out of date,  either pending or expired }
  203. kSIGIndexErr                             = -1974;    { the index given is outside the range of allowable values }
  204. kSIGSignerErr                             = -1975;    { problem with the signer or signature itself }
  205. kSIGPasswordErr                         = -1976;    { password is incorrect }
  206. kSIGInternalsErr                         = -1977;    { an internal error occurred like a bad digest, context or signature }
  207. kSIGToolboxNotPresentErr                 = -1978;    { for client services (ie servers) to report back - not retruned by the TB }
  208. kSIGContextPrepareErr                     = -1979;    { context either prepared with VerifyPrepare, SignPrepare or DigestPrepare already or has been corrupted }
  209. kSIGNoDigestErr                         = -1980;    { no digest in the signature }
  210. kSIGConversionErr                         = -1981;    { unabled to convert an attribute to Mac format }
  211. kSIGSignerNotValidErr                     = -1982;    { Signer has either expired or is pending and can not sign }
  212. kSIGNoSignature                         = -1983;    { standard file signature not found }
  213.  
  214. { AOCE Templates Errors (-15000 to -15039) }
  215.  
  216. kDETInvalidTargetAspectName                = -15000;    { Could not locate an aspect by name }
  217. kDETInvalidTargetItemNumber                = -15001;    { Item number is target invalid (out of range 1..<number of children>) }
  218. kDETInvalidTargetFromNonAspect            = -15002;    { Target selection relative to non-aspect object which requires an aspect }
  219. kDETInvalidTargetDSSpec                    = -15003;    { Target DSSpec could not be resolved }
  220. kDETUnknownTargetSelector                = -15004;    { Unknown selector type for target specification }
  221. kDETInvalidTarget                        = -15005;    { Target specification was invalid (for reasons other than those above) }
  222. kDETTargetNotAnAspect                    = -15006;    { Specified target object was not an aspect }
  223. kDETInvalidCommandItemNumber            = -15007;    { Command item number invalid (out of range 1..<number of items in selection>) }
  224. kDETUnableToGetCommandItemSpec            = -15008;    { Unable to retrieve item specification (internal error, possibly out of memory) }
  225. kDETRequestedTypeUnavailable            = -15009;    { Command item could not be represented in the form requested }
  226. kDETInvalidDSSpec                        = -15010;    { Could not resolve DSSpec (other than in target; see error above for targets) }
  227. kDETUnableToAccessProperty                = -15011;    { Property could not be found and/or created }
  228. kDETInfoPageNotOpen                        = -15012;    { Info-page not open; request requires an open info-page }
  229. kDETNoSuchView                            = -15013;    { No view found with specified property number }
  230. kDETCouldNotAddMenuItem                    = -15014;    { Could not add item to dynamic menu }
  231. kDETCouldNotRemoveMenuItem                = -15015;    { Could not remove item from dynamic menu }
  232. kDETCouldNotFindMenuItem                = -15016;    { Could not find menu item }
  233. kDETCouldNotFindCustomView                = -15017;    { Could not find custom view in info-page }
  234. kDETInvalidReqFunction                    = -15018;    { Invalid call-back request function }
  235. kDETInvalidCallBack                        = -15019;    { Invalid call-back (for reasons other than those above) }
  236. kDETPropertyBusy                        = -15020;    { Edit is open on the property being set }
  237.  
  238. { AOCE Mail Errors (-15040 to -15089) }
  239.  
  240. kMailInvalidOrder                        = -15040;    { This object has already been written to and cannot be written again }
  241.                                                     { handle non-zero offsets for now }
  242. kMailInvalidSeqNum                        = -15041;    { Invalid letter sequence o refers to an non–existent letter }
  243. kMailAttrNotInHdr                        = -15042;    { attribute does not exist in this letter header }
  244. kMailHdrAttrMissing                        = -15043;    { required attribute not written into letter header }
  245. kMailBadEnclLengthErr                    = -15044;    { incorrect number of bytes has been written after memForm of PutEnclosure }
  246. kMailInvalidRequest                        = -15045;    { cannot putAttr for report, putRcptReport for letter }
  247. kMailInvalidPostItVersion                = -15046;    { cannot create new postit with this version }
  248. kMailNotASlotInQ                        = -15047;    { queueID does not refer to a slot's incoming queue }
  249. kMailLtrNotOpen                            = -15048;    { letter is not open, probably not cached in inQ }
  250. kMailMissingMailCat                        = -15049;    { trying to create message in inq, with no postIt }
  251. kMailCannotWriteMailCat                    = -15050;    { cannot update a mail catentry }
  252. kMailTooManyTagsPerLetter                = -15051;    { cannot add more than kMaxTagsPerLetter tags }
  253. kMailGwyDead                            = -15052;    { MSAM died }
  254. kMailIgnoredErr                            = -15053;    { ePPC message was ignored }
  255. kMailLengthErr                            = -15054;    { ePPC message did not complete }
  256. kMailTooManyErr                            = -15055;    { Too many = request outstanding, }
  257. kMailNoMSAMErr                            = -15056;    { no MSAMs found in mailbox! or for command }
  258. kMailCancelled                            = -15057;
  259. kMailSlotSuspended                        = -15058;
  260. kMailMSAMSuspended                        = -15059;
  261. kMailBadSlotInfo                        = -15060;
  262. kMailMalformedContent                    = -15061;    { a mailed structure is malformed }
  263. kMailNoSuchSlot                            = -15062;    { no such slot }
  264. kMailBadLtrInfo                            = -15063;    { bad info there, can't change }
  265. kMailSetFailed                            = -15064;    { could not set letter info }
  266. kMailBadConfig                            = -15065;    { MSAM has bad config info }
  267. kMailBadMSAM                            = -15066;    { bad MSAM: not usable = reason unspec, }
  268. kMailCannotLkupServerSlots                = -15067;    { cannot lookup adas for server mail slots }
  269. kMailBadState                            = -15068;    { the state specifiy is not in any of defined }
  270.  
  271. { AOCE Messaging Errors (-15090 to -15169) }
  272.  
  273. kIPMCantCreateIPMCatEntry                = -15090;
  274. kIPMInvalidMsgType                        = -15091;    { bad msg hint }
  275. kIPMInvalidProcHint                        = -15092;    { bad proc hint }
  276. kIPMInvalidOffset                        = -15093;    { bad offset for read/write }
  277. kIPMUpdateCatFailed                        = -15094;
  278. kIPMMsgTypeReserved                        = -15095;
  279. kIPMNotInABlock                            = -15096;
  280. kIPMNestedMsgOpened                        = -15097;
  281. kIPMA1HdrCorrupt                        = -15098;
  282. kIPMCorruptDataStructures                = -15099;
  283. kIPMAbortOfNestedMsg                    = -15100;
  284. kIPMBlockIsNotNestedMsg                    = -15101;
  285. kIPMCacheFillError                        = -15102;
  286. kIPMInvalidSender                        = -15103;
  287. kIPMNoRecipientsYet                        = -15104;
  288. kIPMInvalidFilter                        = -15105;
  289. kIPMAttrNotInHdr                        = -15106;
  290. kIPMBlkNotFound                            = -15107;
  291. kIPMStreamErr                            = -15108;    { Error on stream (should this ever go out?) }
  292. kIPMPortClosed                            = -15109;    { Port closed (should this ever go out?) }
  293. kIPMBinBusy                                = -15110;
  294. kIPMCorruptedBin                        = -15111;
  295. kIPMBadQName                            = -15112;
  296. kIPMEndOfBin                            = -15113;
  297. kIPMBinNeedsConversion                    = -15114;
  298. kIPMMgrInternalErr                         = -15115;
  299. kIPMEltBusy                                = -15116;
  300. kIPMEltClosedNotDeleted                    = -15117;
  301. kIPMBadContext                            = -15118;
  302. kIPMContextIsClosing                    = -15119;
  303. kIPMeoQ                                    = -15120;
  304. kIPMQOutOfSpace                            = -15121;
  305. kIPMEltNotFound                            = -15122;
  306. kIPMBinOutOfSpace                        = -15123;
  307. kIPMeoCatEntry                            = -15124;
  308. kIPMeoElt                                = -15125;
  309. kIPMQBusy                                = -15126;
  310. kIPMNotSameBin                            = -15127;
  311. kIPMNoMoreServices                        = -15128;
  312. kIPMLookupAttrTooBig                    = -15129;    { attribute in lookup is too big }
  313. kIPMUnknownUAM                            = -15130;
  314. kIPMUnsupportedLogin                    = -15131;
  315. kIPMLogInUnknown                        = -15132;
  316. kIPMNoMoreFilters                        = -15133;
  317. kIPMCouldNotReadInfoReply                = -15134;
  318. kIPMInvalidUser                            = -15135;
  319. kIPMNoMoreSessions                        = -15136;
  320. kIPMNilUserProc                            = -15137;
  321. kIPMBadCatSize                            = -15138;
  322. kIPMIncompleteMsg                        = -15139;
  323. kIPMNoResponsibleTunnel                    = -15140;
  324. kIPMAccessDenied                        = -15141;
  325. kIPMReplyParamUnderrun                    = -15142;    { Too few reply parameters }
  326. kIPMReplyParamOverrun                    = -15143;    { Too many reply parameters }
  327. kIPMRequestParamUnderrun                = -15144;    { Too few request parameters }
  328. kIPMOutOfSync                            = -15145;    { Protocol sync. error }
  329. kIPMNoAttrsFound                        = -15146;    { couldn't find any attrs in lookup }
  330. kIPMWrongAttrTag                        = -15147;    { wrong attr tag in adas lookup }
  331. kIPMNullCID                                = -15148;    { null cid in enumerate }
  332. kIPMBadMailSlotAttrVal                    = -15149;    { invalid mailslot attr value }
  333.  
  334. {$ENDC}    { UsingOCEErrors }
  335.  
  336. {$IFC NOT UsingIncludes}
  337.     END.
  338. {$ENDC}
  339.